package com.woniu.rear.comm.web.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.woniu.rear.comm.web.util.MinioTemplate;

/**
   *   生成MinioTemlate操作对象加入容器
 * @author liwei
 *
 */
@Configuration
public class MinioConfigure {

	/*注入minio参数对象*/
	@Autowired
	private MinioConfig mc;
	
	@Bean
	public MinioTemplate createMinioTemplate() {
		MinioTemplate mt = new MinioTemplate(mc);
		return mt;
	}
}
